package com;

import com.service.DeptServiceImpl;
import config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        DeptServiceImpl deptService = context.getBean(DeptServiceImpl.class);
        deptService.doBusiness();


    }
}
